package com.woniuxy.controller;

import com.woniuxy.entity.dto.PatientCheckDTO;
import com.woniuxy.service.PatientChecklistService;
import com.woniuxy.util.PageParam;
import com.woniuxy.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/patientcheck")
public class PatientCheckListController {
    @Autowired
    PatientChecklistService checklistService;

    @PostMapping("/querylist")
    public ResponseData queryList(@RequestBody PageParam<PatientCheckDTO> pageParam){
        return checklistService.queryList(pageParam);
    }
    @GetMapping("/updatestatus/{id}")
    public ResponseData updateStatus(@PathVariable Integer id){
        return checklistService.updateStatus(id);
    }
}
